package com.example.common;

import com.example.function.sys.model.pojo.SysUserPojo;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * <h1>JwtResponse</h1>
 */

@Data
public class JwtResponse {
    private String token;
    private Date expiration;
    private SysUserPojo user;

    /**
     * token是否到期验证
    */
    @AllArgsConstructor
    public static class ValidateResponse{
        private boolean isTokenExpired;
        private Date expiration;
    }
}
